CDH的启动和停止步骤

您所在的位置:网站首页 Cloudera Manager中hbase cpu CDH的启动和停止步骤

CDH的启动和停止步骤

#CDH的启动和停止步骤| 来源: 网络整理| 查看: 265

一 启动

1.启动MySQL服务

[root@hadoop001 ~]# su - mysqladmin Last login: Thu Oct 24 14:23:45 CST 2019 on pts/0 hadoop001:mysqladmin:/usr/local/mysql:>service mysql start Starting MySQL..[ OK ] hadoop001:mysqladmin:/usr/local/mysql:>service mysql status MySQL running (3882)[ OK ] hadoop001:mysqladmin:/usr/local/mysql:>

2.启动httpd服务  

[root@hadoop001 /]# service httpd status Redirecting to /bin/systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: inactive (dead) Docs: man:httpd(8) man:apachectl(8) [root@hadoop001 /]# service httpd start Redirecting to /bin/systemctl start httpd.service [root@hadoop001 /]# service httpd status Redirecting to /bin/systemctl status httpd.service ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: active (running) since Fri 2019-10-25 12:03:36 CST; 5s ago Docs: man:httpd(8) man:apachectl(8) Main PID: 4123 (httpd) Status: "Processing requests..." CGroup: /system.slice/httpd.service ├─4123 /usr/sbin/httpd -DFOREGROUND ├─4124 /usr/sbin/httpd -DFOREGROUND ├─4125 /usr/sbin/httpd -DFOREGROUND ├─4126 /usr/sbin/httpd -DFOREGROUND ├─4127 /usr/sbin/httpd -DFOREGROUND └─4128 /usr/sbin/httpd -DFOREGROUND Oct 25 12:03:36 hadoop001 systemd[1]: Starting The Apache HTTP Server... Oct 25 12:03:36 hadoop001 httpd[4123]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.238.189. Set the 'ServerName' direc...this message Oct 25 12:03:36 hadoop001 systemd[1]: Started The Apache HTTP Server. Hint: Some lines were ellipsized, use -l to show in full. [root@hadoop001 /]#

2.在主节点上启动server服务,等待一分钟,看日志出现7183字样,表明启动成功

[root@hadoop001 /]# /opt/cloudera-manager/cm-5.16.1/etc/init.d/cloudera-scm-server start Starting cloudera-scm-server: [ OK ]

3.在所有节点启动agent服务

[root@hadoop001 /]# /opt/cloudera-manager/cm-5.16.1/etc/init.d/cloudera-scm-agent start Starting cloudera-scm-agent: [ OK ]

4.登陆WebUI界面,启动CMS服务(5个Roles)

5.启动Cluster服务

二 停止

停止CDH就是开启的相反步骤 1.先停止Cluster集群服务 2.停止CM服务 3.在各个节点上停止Agent /opt/cloudera-manager/cm-5.16.1/etc/init.d/cloudera-scm-agent stop 4.在主节点上停止Server /opt/cloudera-manager/cm-5.16.1/etc/init.d/cloudera-scm-server stop



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3